package product.infrastructure.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import product.domain.model.Product;

import java.util.List;

@Repository
public interface JpaProductRepository extends JpaRepository<Product, Integer> {
    List<Product> findByUserId(Long userId);
    List<Product> findByCategory(String category);
}